package operation;

import book.Book;
import book.BookList;

import java.util.Scanner;

public class FindOperation implements IOPeration {
    @Override
    public void work(BookList bookList) {
        System.out.println("查找图书");
        System.out.println("请输入你想要查找的图书名：");
        Scanner sc = new Scanner(System.in);
        String bookName = sc.nextLine();

        int number = bookList.getUsedSize();
        for (int i = 0; i < number; i++) {
            Book book = bookList.getBook(i);

            if (book.getName().equals(bookName)) {
            }
        }
    }
}